define(['mCommon'], function (MCommon) {
    function Menu(params) {
        this.fields = [
            {name: 'name', alias: '名称',width:175},
            {name: 'order', alias: '排序',width:50},
            {name: 'fatherId', alias: '父编号', defaultValue: 0},
            {
                name: 'type',
                alias: '类型',
                type: 'select',
                model: 'mDict',
                fixedQuery: {type: '菜单'},
                optionsText: 'text',
                optionsValue: 'value'
            },
            {name:'typeName',alias:'类型',width:75},
            {name: 'href', alias: '地址'},
            {name: 'icon', alias: '图标',width:75},
            {name: 'color', alias: '图标颜色'},
            {name:'key',alias:'主键',width:150}
        ];
        this.proxy = {url: '/menus'}
        this.form = 'MenuForm';
        this.callParent(params);
    }

    Menu.extend(MCommon);

    return Menu;
});
